package com.ruoyi.materialCuttingPlan.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 型材定义对象 mcp_material
 * 
 * @author ruoyi
 * @date 2025-07-15
 */
public class McpMaterial extends McpBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类型ID，主键自增 */
    private Long id;

    /** 所属公司ID */
    @Excel(name = "所属公司ID")
    private Long companyId;

    @Excel(name = "所属公司")
    private String companyName;

    /** 代码 */
    @Excel(name = "代码")
    private String materialCode;

    /** 名称 */
    @Excel(name = "名称")
    private String materialName;

    /** 长度 */
    @Excel(name = "长度")
    private BigDecimal materialWidth;

    /** 每米重量 */
    @Excel(name = "每米重量")
    private BigDecimal materialWeightPerMeter;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public void setMaterialCode(String materialCode)
    {
        this.materialCode = materialCode;
    }

    public String getMaterialCode() 
    {
        return materialCode;
    }

    public void setMaterialName(String materialName) 
    {
        this.materialName = materialName;
    }

    public String getMaterialName() 
    {
        return materialName;
    }

    public void setMaterialWidth(BigDecimal materialWidth) 
    {
        this.materialWidth = materialWidth;
    }

    public BigDecimal getMaterialWidth() 
    {
        return materialWidth;
    }

    public void setMaterialWeightPerMeter(BigDecimal materialWeightPerMeter) 
    {
        this.materialWeightPerMeter = materialWeightPerMeter;
    }

    public BigDecimal getMaterialWeightPerMeter() 
    {
        return materialWeightPerMeter;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("companyId", getCompanyId())
            .append("materialCode", getMaterialCode())
            .append("materialName", getMaterialName())
            .append("materialWidth", getMaterialWidth())
            .append("materialWeightPerMeter", getMaterialWeightPerMeter())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
